package com.peppa.petshop.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 张三
 * @since 2021-06-02
 */
@Data
  @EqualsAndHashCode(callSuper = false)
    public class Category implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(value = "category_id", type = IdType.AUTO)
    private Integer categoryId;
    private String category;
    @TableLogic
    private Integer deleted;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

  public Category(Integer categoryId, String category, Integer deleted, LocalDateTime createTime) {
    this.categoryId = categoryId;
    this.category = category;
    this.deleted = deleted;
    this.createTime = createTime;
  }

}
